package com.example.server.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Course)表实体类
 *
 * @author makejava
 * @since 2022-11-21 09:10:57
 */
@SuppressWarnings("serial")
public class Course extends Model<Course> {
    
    private Integer id;
    //管理员id
    private Integer adminid;
    //课程名称(15字)
    private String coursename;
    //简介（50字）
    private String coursebrief;
    //课程强度(1-5)
    private Integer intensity;
    //器械设备（25字以内）
    private String apparatus;
    //身体部位（25字以内 ）
    private String bodypart;
    //课程图片
    private String coursephoto;
    //课程价格
    private float price;
    //0未发布 1已发布
    private Integer audit;

    private Integer stageamount;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAdminid() {
        return adminid;
    }

    public void setAdminid(Integer adminid) {
        this.adminid = adminid;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public String getCoursebrief() {
        return coursebrief;
    }

    public void setCoursebrief(String coursebrief) {
        this.coursebrief = coursebrief;
    }

    public Integer getIntensity() {
        return intensity;
    }

    public void setIntensity(Integer intensity) {
        this.intensity = intensity;
    }

    public String getApparatus() {
        return apparatus;
    }

    public void setApparatus(String apparatus) {
        this.apparatus = apparatus;
    }

    public String getBodypart() {
        return bodypart;
    }

    public void setBodypart(String bodypart) {
        this.bodypart = bodypart;
    }

    public String getCoursephoto() {
        return coursephoto;
    }

    public void setCoursephoto(String coursephoto) {
        this.coursephoto = coursephoto;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Integer getAudit() {
        return audit;
    }

    public void setAudit(Integer audit) {
        this.audit = audit;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Integer getStageamount() {
        return stageamount;
    }

    public void setStageamount(Integer stageamount) {
        this.stageamount = stageamount;
    }
}

